<script>
  import { browser, dev, mode, prerendering, prod, server } from "$app/env";
  import { base, assets } from '$app/paths';
  import {
    afterNavigate,
    beforeNavigate,
    // 进制滚动
    disableScrollHandling,
    // 跳转
    goto,
    invalidate,
    prefetch,
    prefetchRoutes,
  } from "$app/navigation";
  beforeNavigate(navigator => {
    console.log('加载之前 - afterNavigate - ', navigator);
  })
  afterNavigate(navigator => {
    console.log('加载之后 - afterNavigate - ', navigator);
  })

  // goto('跳转')
</script>

<h3>学习内容</h3>
<ul>
  <li>浏览器标记：{browser}</li>
  <li>开发模式：{dev}</li>
  <li>生产模式：{prod}</li>
  <li>vite模式：{mode}</li>
  <li>预渲染：{prerendering}</li>
  <li>服务器：{server}</li>
  <li>---------------------</li>
  <li>base：{base}</li>
  <li>assets：{assets}</li>
</ul>

<svelte:head>
  <title>页面标题</title>
</svelte:head>
